package com.teng.service.impl;

import com.teng.dao.DocDao;
import com.teng.service.RecoveryService;

public class RecoveryServiceImpl implements RecoveryService{

	@Override
	public String reductionDoc(String id) throws Exception {
		DocDao dao=new DocDao();
		String savePath=dao.selectSavePath(id);
		dao.reductionDoc(id);
		System.out.println(savePath);
		return savePath;
	}

	@Override
	public void deleteDoc(String id) throws Exception {
		DocDao dao=new DocDao();
		dao.deleteDoc(id);
		
	}

	@Override
	public void emptyRecovery() throws Exception {
		DocDao dao=new DocDao();
		dao.emptyRecovery();
	}

}
